package com.zy.controller;

import com.zy.pojo.User;
import com.zy.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Controller
public class Test {
    @Autowired
    private UserService userService;

    @RequestMapping("/test.html")
    public String selFy(Integer i){
        List<User> list = userService.selUser(1, 3);
        Map<String ,Object> map = new HashMap<>();

        map.put("list",list);

        return "my.html";
    }
}
